<template>
  <div class="measure-popup-box">
    <span class="measure-info">{{ `${resultRef}${unitRef}` }}</span>
  </div>
</template>

<script setup>
import { toRef } from 'vue'

const props = defineProps({
  result: {
    type: Object,
  },
  unit: {
    type: Object,
  },
})

const resultRef = toRef(props.result)
const unitRef = toRef(props.unit)
</script>

<style scoped lang="scss">
.measure-popup-box {
  padding: 3px 5px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 3px;

  .measure-info {
    color: white;
    font-size: 16px;
  }
}
</style>
